package com.linkage.usercenter.dao;

import com.linkage.usercenter.pojo.entity.CoreMiddleUserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CoreMiddleUserRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CoreMiddleUserRole record);

    int insertSelective(CoreMiddleUserRole record);

    CoreMiddleUserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CoreMiddleUserRole record);

    int updateByPrimaryKey(CoreMiddleUserRole record);

    void deleteByRoleCodeList(Map<String, Object> map);

    void deleteByUserCode(String userCode);

    int queryNumByRoleCodes(List<String> roleCodeList);

    List<CoreMiddleUserRole> selectByUserCode(String userCode);

    void deleteByDptCode(String dptCode);
}